﻿using Furion;
using Furion.DatabaseAccessor;
using Microsoft.Extensions.DependencyInjection;
using Project1.Core.Locator;
using Scene.EntityFramework.Core;

namespace Project1.EntityFramework.Core
{
    public class Startup : AppStartup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddDatabaseAccessor(options =>
            {
                options.AddDbPool<EQUDbContext>(DbProvider.Oracle);
                options.AddDbPool<MYBASEDbContext, MYBASEDbContextLocator>(DbProvider.Oracle);
            }, "Project1.Database.Migrations");
        }
    }
}